package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ServiceTeamWithMembersMapper;
import com.ruoyi.system.domain.ServiceTeamWithMembers;
import com.ruoyi.system.service.IServiceTeamWithMembersService;

/**
 * 员工服务班组 Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class ServiceTeamWithMembersServiceImpl implements IServiceTeamWithMembersService
{
    @Autowired
    private ServiceTeamWithMembersMapper serviceTeamWithMembersMapper;

    /**
     * 通过id查询员工服务班组
     *
     * @param id 员工服务班组主键
     * @return 员工服务班组
     */
    @Override
    public ServiceTeamWithMembers selectServiceTeamWithMembersById(Long id)
    {
        return serviceTeamWithMembersMapper.selectServiceTeamWithMembersById(id);
    }

    /**
     * 查询员工服务班组列表
     *
     * @param serviceTeamWithMembers 员工服务班组
     * @return 员工服务班组
     */
    @Override
    public List<ServiceTeamWithMembers> selectServiceTeamWithMembersList(ServiceTeamWithMembers serviceTeamWithMembers)
    {
        return serviceTeamWithMembersMapper.selectServiceTeamWithMembersList(serviceTeamWithMembers);
    }

    /**
     * 新增员工服务班组列表
     *
     * @param serviceTeamWithMembers 员工服务班组
     * @return 结果
     */
    @Override
    public int insertServiceTeamWithMembers(ServiceTeamWithMembers serviceTeamWithMembers)
    {
        return serviceTeamWithMembersMapper.insertServiceTeamWithMembers(serviceTeamWithMembers);
    }

    /**
     * 修改员工服务班组列表
     *
     * @param serviceTeamWithMembers 员工服务班组
     * @return 结果
     */
    @Override
    public int updateServiceTeamWithMembers(ServiceTeamWithMembers serviceTeamWithMembers)
    {
        return serviceTeamWithMembersMapper.updateServiceTeamWithMembers(serviceTeamWithMembers);
    }

    /**
     * 通过id批量删除员工服务班组列表信息
     *
     * @param ids 需要删除的员工服务班组主键
     * @return 结果
     */
    @Override
    public int deleteServiceTeamWithMembersByIds(Long[] ids)
    {
        return serviceTeamWithMembersMapper.deleteServiceTeamWithMembersByIds(ids);
    }

    /**
     * 通过id删除员工服务班组信息列表信息
     *
     * @param id 员工服务班组主键
     * @return 结果
     */
    @Override
    public int deleteServiceTeamWithMembersById(Long id)
    {
        return serviceTeamWithMembersMapper.deleteServiceTeamWithMembersById(id);
    }
}
